<?php
/**
 * @version        $Id$
 * @author         master@xuewl.com
 * @copyright      Copyright (c) 2007 - 2014, Chongqing xuewl Information Technology Co., Ltd.
 * @link           http://www.xuewl.com
**/
class advert { 
    function __construct() {
        // $this->categorys = getcache('category', 'commons');
        // $this->models = getcache('model', 'commons');
        $this->db = D('AdvertLog');
    }

    public function count($data = array()) {
        
    }

    /* 体验日志列表 */
    public function lists($data) {
        $sqlmap = array();
        $sqlmap['ad_id'] = $data['docid'];
        $sqlmap['uid'] = $data['uid'];
        $lists = $this->db->where($sqlmap)->limit($data['limit'])->order($data['order'])->select();
        return $lists;
    }

}